<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="description" content="Description">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  <link href="https://cdn.bootcdn.net/ajax/libs/docsify/4.12.1/themes/vue.css" rel="stylesheet">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.css">
</head>

<body>
  <div id="app">加载中</div>
  <script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.12.1/docsify.js"></script>
  <script src="//cdn.jsdelivr.net/npm/docsify-edit-on-github"></script>
  <script>
    window.$docsify = {
      name: 'lambert的文档',
      repo: 'https://gitee.com/Cancon/docs.git',
      loadSidebar: true,
      /* 
      你可能想要浏览到一个目录时，只显示这个目录自己的侧边栏，这可以通过在每个文件夹中添加一个 _sidebar.md 文件来实现。
      _sidebar.md 的加载逻辑是从每层目录下获取文件，如果当前目录不存在该文件则回退到上一级目录。
      例如当前路径为 /zh-cn/more-pages 则从 /zh-cn/_sidebar.md 获取文件，如果不存在则从 /_sidebar.md 获取。
      也可以配置 alias 避免不必要的回退过程。
      */
      alias: {
        '/.*/_sidebar.md': '/_sidebar.md',
        '/.*/_navbar.md': '/_navbar.md'
      },
      // 显示目录层级
      subMaxLevel: 2,
      loadNavbar: true,
      // Full text search
      search: { // default默认搜索
        placeholder: '搜索',
        noData: '找不到结果!',
        depth: 6
      },
      disqus: 'shortname',
      count: {
        countable: true,
        fontsize: '0.9em',
        color: 'rgb(90,90,90)',
        language: 'chinese'
      },
      tabs: {
        persist: true,      // default
        sync: true,      // default
        theme: 'classic', // default
        tabComments: true,      // default
        tabHeadings: true       // default
      },
      markdown: {
        renderer: {
          code: function (code, lang) {
            if (lang === "mermaid") {
              return (
                '<div class="mermaid">' + mermaid.render('mermaid-svg-' + num++, code) + "</div>"
              );
            }
            return this.origin.code.apply(this, arguments);
          }
        }
      },
      plugins: [
        EditOnGithubPlugin.create(
          'https://gitee.com/-/ide/project/Cancon/docs/edit/master/-/'
        ),
      ]
    }
  </script>
  <!-- Docsify v4 -->
  <script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.12.1/plugins/search.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.12.1/plugins/zoom-image.js"></script>
  <!-- 复制到剪贴板 -->
  <script src="./_libs/docsify-copy-code.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.12.1/plugins/disqus.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.12.1/plugins/emoji.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.12.1/plugins/external-script.js"></script>
  <script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
  <script src="//unpkg.com/docsify-count/dist/countable.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
  <script src="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-php.min.js"></script>]
  <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-typescript.js"></script>
  <script>
    var num = 0;
    mermaid.initialize({ startOnLoad: false });
  </script>
</body>

</html>